import { JSEncrypt } from 'jsencrypt'
 
 
 

export function rsaMethod(content) {
  
  let encrypt=new JSEncrypt();
  encrypt.setPublicKey("MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDKz/synHm7fzHiPVm7nB5ypWlyr2KQmpcqfis4/KdwHKT9OsUC4Mijw/LNCfy+MQGFm04YBN7T51vAvy36ShuA3bcLi1Ld6QAehZ/MlA7Jejn/sp/lEFFVbw20aIVmP2rvgs+g2fk+ejQ1Ba2Rz/yQLZZvublpwdJrY3+cYmOXjwIDAQAB")
  return encrypt.encrypt(content);
};